import Toast from './Toast'

export default {
  install(Vue) {
    const ToastCon = Vue.extend(Toast)
    const toast = new ToastCon()

    toast.$mount(document.createElement('div'))
    document.body.appendChild(toast.$el)

    Vue.prototype.$toast = toast
  }
}
